package zz.demo.springCloud.feignClient;


import feign.Contract;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * Created by zhangzheng on 2017-8-24.
 */
public class FeignConfiguration {

    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor (){
        return new BasicAuthRequestInterceptor("zhangsan","1");
    }
}
